package com.freesky.biz.icbc.domain;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.*;
import com.alibaba.excel.enums.poi.BorderStyleEnum;
import com.alibaba.excel.enums.poi.HorizontalAlignmentEnum;
import com.alibaba.excel.enums.poi.VerticalAlignmentEnum;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.freesky.common.core.domain.BaseEntity;
import lombok.Data;

import java.util.HashMap;
import java.util.Map;

/**
 * 工行营销日历活动数据
 */
@Data
@ContentRowHeight(22)
@ColumnWidth(25)
@HeadRowHeight(25)
@HeadStyle(horizontalAlignment = HorizontalAlignmentEnum.CENTER,
        verticalAlignment = VerticalAlignmentEnum.CENTER,
        borderLeft= BorderStyleEnum.THIN,
        borderRight= BorderStyleEnum.THIN,
        borderTop= BorderStyleEnum.THIN,
        borderBottom= BorderStyleEnum.THIN)//表头样式
@ContentStyle(horizontalAlignment = HorizontalAlignmentEnum.CENTER,
        verticalAlignment = VerticalAlignmentEnum.CENTER,
        borderLeft= BorderStyleEnum.THIN,
        borderRight= BorderStyleEnum.THIN,
        borderTop= BorderStyleEnum.THIN,
        borderBottom= BorderStyleEnum.THIN)
public class TMarketingActivityData implements java.io.Serializable {

    private static final long serialVersionUID = 1L;

    @ExcelIgnore
    private String id;

    @ExcelProperty("活动ID")
    private String activityId;

    @ExcelProperty("URL")
    private String url;
    //活动开始时间
    @ExcelIgnore
    private String startTime;
    //活动结束时间
    @ExcelIgnore
    private String endTime;

    @ExcelIgnore
    private String status;

    //1、日历，2、热门活动，3、推荐活动
    @ExcelIgnore
    private String type;

    @ExcelIgnore
    //时间：周一到周天，从1到7
    private String typeDate;

    @ExcelProperty("活动名称")
    private String activityName;

    @ExcelProperty("姓名")
    private String userName;

    @ExcelProperty("手机号码")
    private String mobile;

    @ExcelProperty("网点")
    private String bank1;

    @ExcelProperty("支行")
    private String bank2;

    @ExcelProperty("分行")
    private String bank3;

    @ExcelProperty("点击量")
    private String clickNum;

    @ExcelProperty("分享次数")
    private String shareNum;

    @ExcelProperty("访问人数")
    private String visitNum;

    @ExcelProperty("访问人次")
    private String visitCount;

    @ExcelIgnore
    @JsonInclude(JsonInclude.Include.NON_EMPTY)
    private Map<String, Object> params;


    public Map<String, Object> getParams() {
        if (params == null) {
            params = new HashMap<>();
        }
        return params;
    }

    public void setParams(Map<String, Object> params)
    {
        this.params = params;
    }
}
